import random
import threading

isWhile=True
class exTest(object):

    def __init__(self):
        self.num=0
        self.si=0
        self.id=0


    def getNum(self):
        return self.num

    def getSi(self):
        return self.si

    def getChannelID(self):
        return self.id

    def capturePack(self):
        while isWhile:
            #print('capturePack')
            pass

    def setChannel(self):
        while isWhile:
            #print('setChannel')
            self.num=self.num+1
            self.si=random.randint(1,100)
            self.id=random.randint(1000,9999)

    def exit0(self):
        print('退出了')